package com.bai.localshop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.bai.localshop.pojo.dto.VoucherQueryDTO;
import com.bai.localshop.pojo.entity.Voucher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 代金券Mapper接口
 */
@Mapper
public interface VoucherMapper extends BaseMapper<Voucher> {

    /**
     * 分页查询代金券
     */
    IPage<Voucher> selectVoucherPage(IPage<Voucher> page, @Param("query") VoucherQueryDTO requestParam);
}